Release 10.1A: OpenEdge Development:
Programming Interfaces


bproxsdto4gl utility

The bproxsdto4gl tool is a command line utility that extracts the definition of a table or data set from an XML Schema file (.xsd file) and converts it to a static 4GL temp-table or static ProDataSet definition. By default, the definition is saved as a 4GL include file (.i file).

Operating system
Syntax
UNIX
Windows
bproxsdto4gl 
  [-h]  
    | 
  { xml-schema-filename  
    [ -output { output-directory-name | filename } ] 
    [ -element element-name ] 
    [ -overridemapping ] 
    [ -fieldtypemapping { field-mapping-file | string } ] 
  } 

-h

Display a help message on the use of this utility.

xml-schema-filename

The name of the XML Schema file containing the schema to convert into a 4GL definition. xml-schema-filename can contain absolute or relative path information.

-output { output-directory | filename }

Overrides the default behavior for the generated 4GL include file. If not specified, the utility names the output file after the source .xsd file (xsd-filename.i) and saves the file to the current directory. To use the default name, but specify a different directory, supply an absolute or relative path. To change the name of the file, specify it and include any necessary absolute or relative path information.

-element element-name

The top-level element declaration (the element’s name) from the XML Schema file that identifies the table or data set that will be the source of the conversion to a 4GL temp-table or ProDataSet definition.

-overridemapping

Override the default data type mapping between XML Schema string and binary types when generating 4GL field definitions from XML Schema. The XML Schema string data type maps to a CHARACTER field by default, and the XML Schema base64Binary and hexBinary data types map to a RAW field by default. If you specify overridemapping, XML Schema string will map to a CLOB field, and XML Schema base64Binary or hexBinary will map to a BLOB field.

-fieldtypemapping { field-mapping-file | field-mapping-string }

A string containing a comma-separated list of fieldname and data type pairs, or a file that contains the comma-separated list. This option allows you to specify the Progress data type for a specific field from the XML Schema. See Appendix D, "XML Reference of Data Type and Code Page mappings," for more information on the default data type mapping between XML Schema and the 4GL.

Here is the syntax for the string or file containing the pairs.

Syntax
fieldname1, data-type1, fieldname2, data-type2 ... 

If there are multiple buffers defined in the XML Schema, the fieldname must be qualified with the buffer name from the XML Schema:

buffer-name.fieldname 

data-type must be a valid Progress data type for a temp-table field. For example: CLOB, BLOB, DATETIME, and so on.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095